const HTMLElement = require('./HTMLElement');
const { showNativeInputElement } = require('./util');

class HTMLTextAreaElement extends HTMLElement {
    constructor() {
        super();
        this.nodeName = 'TEXTAREA';
        this.name = '';
        this.type = 'text';
        this.disabled = false;
        this.autofocus = false;
        this.required = false;
        this.value = '';
        this.maxLength = 65535;
        this.placeholder = '';
    }

    focus() {
        showNativeInputElement(this, true);
    }

    blur() {
    }

    select() {
    }

    setSelectionRange() {
    }

    setRangeText() {
    }

    setCustomValidity() {
    }

    checkValidity() {
        return true;
    }
}

module.exports = HTMLTextAreaElement;
